package com.example.homework2.Service.impl;


import com.example.homework2.Dao.MedicineDao;
import com.example.homework2.Entity.Medicine;
import com.example.homework2.Service.MedicineService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 商品(Product)表服务实现类
 *
 * @author makejava
 * @since 2022-04-19 22:55:59
 */
@Service("medicineService")
public class MedicineServiceImpl implements MedicineService {
    @Resource
    private MedicineDao medicineDao;



    /**
     * 新增数据
     *
     * @param medicine 实例对象
     * @return 实例对象
     */
    @Override
    public int insert(Medicine medicine) {
        return this.medicineDao.insert(medicine);
    }

  }
